// app.js
import './utils/utils.js'
import './utils/http'

App({
  globalData: {},
  setToken(key, token){  
    this[key] = token
    wx.setStorageSync(key, token)
  },
  onLaunch(){
    this.getToken()
  },
  getToken(){
    this.token=wx.getStorageSync('token')
  }
})
